package com.songcha.module_login.api

import com.songcha.library_network.bean.BaseBean
import com.songcha.library_network.bean.BaseStringDataBean


import io.reactivex.Observable
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part
import retrofit2.http.Path

interface LoginApiService {

    @GET("api/getPhoneVerifyCodeYmy/{phone}")
    fun sendVerifyCode(@Path("phone") phone:String):Observable<BaseBean>

    @GET("/api/phoneLogin/{phone}/{code}")
    fun login(@Path("phone") phone:String,@Path("code") code:String):Observable<BaseStringDataBean>

    @GET("/api/getAccessToken/{code}")
    fun wxlogin(@Path("code") code:String):Observable<BaseStringDataBean>


}